package com.st.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ScenicEvaluation {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 景点id
     */
    private Integer scenicId;
    /**
     * 景点评价
     */
    private Integer score;
    /**
     * 评价内容
     */
    private String content;
    /**
     * 是否点赞
     */
    private Integer tags;
    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Attractions attractions;

}
